package com.dgut.exp02.czqqq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

public class MyEvent extends ApplicationEvent {

    /**
     * 日志变量log
     */
    private static final Logger log = LoggerFactory.getLogger(MyEvent.class);

    /**
     * 存储信息
     */
    private String msg;

    public MyEvent(String msg) {
        super(msg);
        this.msg = msg;
        log.info("添加事件成功 message：" + msg);
    }

    public String getMsg() {
        return msg;
    }
}
